/*
 * LoginMenu.h
 *
 *  Created on: 2010-11-3
 *      Author: Administrator
 */

#ifndef LOGINMENU_H_
#define LOGINMENU_H_

#include "BaseMenu.h"

class CEikRichTextEditor;
class CBaseFont;
class CLoginMenu : public CBaseMenu
	{
public:
	CLoginMenu(CEngine* pEngine);
	virtual ~CLoginMenu();
	
public:
	void Activate();
	void Deactivate();
	void Draw(const TRect& /*rect*/);
	void KeyProc(TInt nApKeyCode, TInt nKeyCode, TInt nScanCode, TInt nType);
	void MouseProc(	TInt iType,TUint iModifiers,TPoint iPosition,TPoint iParentPosition);	
	void TimeSlice();
	
private:
	enum TEleEnum
	{
		EEle_Origin,
		EEle_Size,
		EEle_MobileNumber,
		EEle_IdentifyingCode,
		EEle_MobileNumberText,
		EEle_IdentifyingCodeText,
		EEle_Login,
		EEle_Register,
		EEle_GetIdentifyingCode,
		EEle_SaveIdentifyingCode,
		EEle_AutoLogin,
		EEle_SaveSel,
		EEle_AutoSel,
		EEleCount
	};
	static const POINT	Const_Ele_Pos[EEleCount];
	
	enum TPngIdEnum
		{
			EPng_Origin = 0,
			EPng_Size = 0,
			EPng_MobileNumber=1,
			EPng_IdentifyingCode=2,
			EPng_Login=3,
			EPng_Register=4,
			EPng_GetIdentifyingCode=5,
			EPng_SaveIdentifyingCode_AutoLogin = 6,
			EPng_SaveSel = 7,
			EPng_AutoSel = 7
		};

	
	CEikRichTextEditor*	m_pMobileNumberEditor;
	CEikRichTextEditor*	m_pIdentifyingCodeEditor;
	CBaseFont*	m_LoginFont;
	};

#endif /* LOGINMENU_H_ */
